package com.lelefly.base.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * LeleflyUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "lelefly_user", catalog = "lelefly")
public class LeleflyUser implements java.io.Serializable {

	// Fields

	private String usernm;
	private String username;
	private String phonenumber;
	private String isunit;
	private String des;
	private String password;
	private String type;
	private String idcard;
	private String organization;
	private String email;
	private String registerDate;
	private String loginTime;
	private int userState;

	// Constructors

	/** default constructor */
	public LeleflyUser() {
	}

	/** minimal constructor */
	public LeleflyUser(String usernm, String phonenumber) {
		this.usernm = usernm;
		this.phonenumber = phonenumber;
	}

	/** full constructor */
	public LeleflyUser(String usernm, 
			String username, 
			String phonenumber, 
			String isunit, 
			String des, 
			String password, 
			String type,
			String idcard,
			String organization,
			String email,
			String registerDate,
			String loginTime,
			int userState) {
		this.usernm = usernm;
		this.username = username;
		this.phonenumber = phonenumber;
		this.isunit = isunit;
		this.des = des;
		this.password = password;
		this.type = type;
		this.idcard = idcard;
		this.organization = organization;
		this.email = email;
		this.registerDate = registerDate;
		this.userState = userState;
		this.loginTime = loginTime;
	}

	// Property accessors
	@Id
	@Column(name = "usernm", unique = true, nullable = false, length = 40)
	public String getUsernm() {
		return this.usernm;
	}

	public void setUsernm(String usernm) {
		this.usernm = usernm;
	}

	@Column(name = "username", length = 20)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "phonenumber", nullable = false, length = 11)
	public String getPhonenumber() {
		return this.phonenumber;
	}

	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}

	@Column(name = "isunit", length = 1)
	public String getIsunit() {
		return this.isunit;
	}

	public void setIsunit(String isunit) {
		this.isunit = isunit;
	}

	@Column(name = "des", length = 40)
	public String getDes() {
		return this.des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	@Column(name = "password", length = 32)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "type", length = 10)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name="idcard",length=20)
	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	@Column(name="organization",length=100)
	public String getOrganization() {
		return organization;
	}

	public void setOrganization(String organization) {
		this.organization = organization;
	}

	@Column(name="email",length=150)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name="register_date",length=20,nullable=false)
	public String getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(String registerDate) {
		this.registerDate = registerDate;
	}

	@Column(name="user_state",length=1)
	public int getUserState() {
		return userState;
	}

	public void setUserState(int userState) {
		this.userState = userState;
	}

	@Column(name="login_time",length=20)
	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	
	
}